{extend name="template/base" /}
{block name="content"}
<div class="page-container">

    <form class="mb-20" method="get" action="{:\\think\\Url::build($Request.action)}">
        <input type="text" class="input-text" style="width:100px" placeholder="订单id" name="order_id" value="{$Request.param.order_id}">
        <input type="text" class="input-text" style="width:100px" placeholder="用户id" name="uid" value="{$Request.param.uid}">

        <select name="pay_type" class="select-box" style="width: 150px;">
            <option value="">付款方式</option>
            <option value="1">货到付款</option>
            <option value="2">线上付款</option>
        </select>

        <select name="status" class="select-box" style="width: 150px;">
            <option value="">订单状态</option>
            <option value="0">待发货</option>
            <option value="1">待付款</option>
        </select>

        <button type="submit" class="btn btn-success" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
    </form>

    <div class="cl pd-5 bg-1 bk-gray">
        <span class="l">
            {tp:menu menu="add" /}
        </span>
        <span class="r pt-5 pr-5">
            共有数据 ：<strong>{$total ?? 0}</strong> 条
        </span>
    </div>
    <table class="table table-border table-bordered table-hover table-bg mt-20">
        <thead>
        <tr class="text-c">
            <!--<th></th>-->
            <th width="5%">订单id</th>
            <th width="10%">订单编号</th>
            <th width="10%">总金额(元)</th>
            <th width="10%">优惠金额(元)</th>
            <th width="10%">配送费(元)</th>
            <th width="10%">实付金额(元)</th>
            <th width="5%">须补差价(元)</th>
            <th width="5%">状态</th>
            <th width="15%">操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name="list" id="vo"}
        <tr class="text-c">
            <td>{$vo.order_id}</td>
            <td>{$vo.order_sn}</td>
            <td>{$vo.total_money}</td>
            <td>{$vo.youhui_money}</td>
            <td>{$vo.postfee}</td>
            <td>{$vo.real_money}</td>
            <td>{$vo.diff_money}</td>
            <td>
                {if condition="$vo.status eq 0"}
                <span class="label-danger radius ml-5 label">待派送</span>
                {else}
                <span class="label-success radius ml-5 label">已派送</span>
                {/if}
            </td>

            <td>
                <a class="label ml-5 radius label-primary" href="javascript:;" onclick="layer_open('订单详情','__URL__/show/id/{$vo.order_id}')">详情</a>
                <a class="label ml-5 radius label-primary" href="javascript:;" onclick="layer_open('备注补差价','__URL__/mark/id/{$vo.order_id}')">备注差价</a>
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>
    <div class="page-bootstrap">{$page??''}</div>
</div>
{/block}



{block name="script"}
<script type="text/javascript" src="__LIB__/Validform/5.3.2/Validform.min.js"></script>
{/block}
